/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.murcanlat.example.models;

import com.murcanlat.webcan.Template;
import com.murcanlat.webcan.components.OutputInputPanel;
import com.murcanlat.webcan.html.anotations.Input;
import com.murcanlat.webcan.html.anotations.Order;
import com.murcanlat.webcan.html.anotations.Output;
import com.murcanlat.webcan.html.anotations.Panel;
import com.murcanlat.webcan.html.anotations.Property;
import javax.faces.component.html.HtmlOutputText;
import javax.faces.component.html.HtmlPanelGrid;
import org.primefaces.component.inputtext.InputText;

/**
 *
 *
 * @author Murat CANPOLAT <murat.canpolat@gebze.bel.tr>
 */
@Panel(className = HtmlPanelGrid.class, propertys = {
    @Property(name = "columns", value = "2")})
public class PersonelModel extends Template {

    public static final String ADI = "adi";

    public static final String UNVAN_MODEL = "unvanModel";

    @OutputInputPanel(output = @Output(className = HtmlOutputText.class, value = "Adi"),
            input = @Input(className = InputText.class))
    @Order(value = 1)
    String adi;

    @Order(value = 2)
    UnvanModel unvanModel;
}
